package May;

import java.util.Random;

public class Test10ArrayUsing02 {
    public static void main(String[] args) {
        //String[] arr=new String[5];//数组的动态初始化，字符初始化值为null，整数类型初始化值为0
        int[] arr=new int[10];
        Random r=new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i]= r.nextInt(10+1);
        }

        for (int i = 0; i <arr.length ; i++) {
            System.out.println(arr[i]);
        }


    }
}
